package chapter4;

import java.awt.Graphics;
import javax.swing.JPanel;

public class DrawPanel extends JPanel {
	
	public void paintComponent (Graphics g) {
		
		super.paintComponent(g);
		
		g.drawLine(25, 0, getWidth(), getHeight());
		g.drawLine(0, getHeight(), getWidth(), 0);
	}
	
}
